using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Andrewl.XnaHelpers.Generics
{
    public class ArrayPool<T>
    {
        public T[] items;

        public T[] Items
        { get { return items; } }

        public ArrayPool(int count, T obj)
        {
            items = new T[count];
            for (int i = 0; i < items.Length; i++)
            {
                items[i] = obj;
            }
        }

    }

    public class ListPool<T>
    {
        public List<T> items;

        public List<T> Items
        { get { return items; } }

        public ListPool()
        {
            items = new List<T>();
        }
    }

}